package javaBase.nowcoder.HJ97_A_记负均正;

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Arrays;

//11
//1 2 3 4 5 6 7 8 9 0 -1
//1 5.0
public class Main {
    public static double sum = 0.0d;
    public static int count = 0;
    public static int zero = 0;

    public static void main(String srgs[]) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        Integer all = Integer.parseInt(br.readLine());
        String nums = br.readLine();
        Arrays.asList(nums.split(" ")).stream().mapToInt(Integer::parseInt).filter(x -> x >= 0).forEach(x -> {
            sum += x;
            if (x != 0) {
                count++;
            } else {
                zero++;
            }
        });
        System.out.print(all - count - zero + " ");
        if (count != 0) {

            System.out.println(String.format("%.1f", sum / count));
        } else {
            System.out.println("0.0");
        }


    }
}